package com.study.kafka.consumer;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerTopic {

	@KafkaListener(topics = "hello")
	public void listenTopic(ConsumerRecord<String, String> c) {
		System.out.println("topic:" + c.topic() + ",offset:" + c.offset() + ",value" + c.value());
	}
}
